from conan import ConanFile
from conan.tools.files import copy
from os.path import join

class DtalkCppConan(ConanFile):
    name = "dtalk-cpp"
    version = "0.0.0-dev"
    description = "dtalk c++11 实现"
    url = "https://gitee.com/l0km/dtalk-cpp"
    license = "BSD-2-Clause"
    author = "guyadong 10km0811@sohu.com"
    topics = ("dtalk", "c++11","json")

    requires = "simplemq-cpp/0.0.2-dev"

    package_type = "header-library"
    settings = []

    exports_sources = "include/*"

    def package(self):
        copy(self,"*", join(self.source_folder,"include"),join(self.package_folder,"include"))

    def package_id(self):
        self.info.clear()

    def package_info(self):
        self.cpp_info.requires=["simplemq-cpp::simplemq-cpp"]